<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>详情查看</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />

  <style>
    .container {
      margin: auto;
      width: 100%;
    }

    .control-group {
      margin-bottom: 15px;
    }

    label {
      display: inline-block;
      /* width: 120px; */
    }

    input {
      padding: 5px;
    }

    #result_container {
      margin-top: 20px;
      padding: 10px;
      border: 1px solid #ddd;
      background: #fff;
    }

    .reverse-search {
      margin-top: 20px;
      padding: 15px;
      border: 1px dashed #ccc;
      background: #f5f7fa;
    }

    .map-tip {
      margin-top: 5px;
      color: #666;
      font-size: 12px;
    }

    .click-tip {
      margin-top: 5px;
      color: #f60;
      font-size: 12px;
      font-weight: bold;
    }

    .map-loading {
      position: relative;
    }

    .map-loading::after {
      content: "地图加载中...";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(255, 255, 255, 0.8);
      padding: 10px 20px;
      border-radius: 5px;
      z-index: 1000;
    }

    /* 为地图容器添加相对定位上下文 */
    .map-container {
      position: relative;
      width: 100%;
    }
  </style>
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加':'详情查看'}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'PatrolComplaints', 'form': 'dataForm' ,'primary_key':'complaint_id' })">
      <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">
        <el-descriptions :column="1" size="large" border>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">标题</div>
            </template>
            <el-form-item prop="title" :rules="[{ required: true, message: '请输入标题', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.title" placeholder="请输入标题" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">上报人姓名</div>
            </template>
            <el-form-item prop="complaintperson" :rules="[{ required: true, message: '请输入上报人姓名', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.complaintperson" placeholder="请输入上报人姓名" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">上报人联系电话</div>
            </template>
            <el-form-item prop="complaintperson_mobile"
              :rules="[{ required: true, message: '请输入上报人联系电话', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.complaintperson_mobile" placeholder="请输入上报人联系电话" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>


          <el-descriptions-item>
            <template #label>
              <div class="cell-item">村</div>
            </template>
            <el-form-item prop="Village_SerialNumber"
              :rules="[{ required: true, message: '请选择村', trigger: 'change' }]">
              <el-cascader :disabled="action == 'Modify'" class="borderless-input" v-model="dataForm.Village_SerialNumber"
                filterable :props="{ emitPath: false,
                          value: 'ProvinceNumber', 
                          label: 'Province',
                          children: 'children',emitPath:false}" placeholder="请选择村"
                :options="village" style="width: 100%"></el-cascader>

            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">详细地址</div>
            </template>
            <el-form-item prop="Address"
              :rules="[{ required: true, message: '请输入详细地址', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.Address" placeholder="请输入详细地址" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item v-if="action == 'Modify'">
            <template #label>
              <div class="cell-item">处理时间</div>
            </template>
            <el-form-item prop="Address"
              :rules="[{ required: true, message: '请输入处理时间', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.Processing_Datetime" placeholder="请输入处理时间" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item v-if="action == 'Modify'">
            <template #label>
              <div class="cell-item">处理结果</div>
            </template>
            <el-form-item prop="Address"
              :rules="[{ required: true, message: '请输入处理结果', trigger: 'blur' }]">
              <el-input :disabled="action == 'Modify'" v-model="dataForm.Processing_Result" placeholder="请输入处理结果" class="borderless-input"/>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">事件内容</div>
            </template>
            <el-form-item prop="title" :rules="[{ required: true, message: '请输事件内容', trigger: 'blur' }]">
              <yl-text-editor :disabled="action == 'Modify'" v-model="dataForm.content" placeholder="请输入事件内容"></yl-text-editor>
            </el-form-item>
          </el-descriptions-item>
        </el-descriptions>
      </el-form>
    </div>
    <yl-online-preview :file-url="fileUrl" v-model="showDialog"></yl-online-preview>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="js/add.js"></script>

</html>